@extends('admin.layout.layout')
@section('title')
<title>北京市仁爱慈善后台</title>
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.config.js')}}"></script>
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.all.min.js')}}"></script>
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/lang/zh-cn/zh-cn.js')}}"></script>
@endsection
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">选项添加</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-8 col-lg-offset-2">
        <form role="form" action="{{url('/admin/tab/conaddinsert')}}" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label>所属分类</label>
                <select name="tid" class="form-control">
                    @foreach ($data as $k=>$v)
                    @if($v->pid != 0)
                    <option value="{{$v->id}}">{{$v->title}}</option>
                    @endif
                    @endforeach
                    </select>
            </div>
            <div class="form-group">
                <label>标题</label>
                <input class="form-control" type="text" name="titles">
            </div>
            <div class="form-group">
                <label>作者</label>
                <input class="form-control" type="text" name="author">
            </div>
            <div class="form-group">
                <label>发布者</label>
                <input class="form-control" type="text" name="publisher">
            </div>
            <div class="form-group">
                <label>发布时间</label>
                <input class="form-control" type="text" name="times">
            </div>
            <div class="form-group">
                <label>文章内容</label>
                <script id="editor" name="content" type="text/plain" style="height:500px;">

                </script>
            </div>
            {{csrf_field()}}
            <button class="btn btn-primary" type="submit">添加</button>
            <button class="btn btn-danger" type="reset">重置</button>
        </form>
    </div>
</div>
<!-- /.row (nested) -->
@endsection
@section('js')
<script type="text/javascript">
    var ue = UE.getEditor('editor');
</script>
@endsection
